function addClient(listeDesClients, listeDesConversations, listeDesMessages, database)
{
	/* On lit la BDD pour charger en mémoire tous les clients */
	database.transaction(function (tx)
	{
		tx.executeSql('SELECT * FROM clients', [], function(tx, results){
			for (var i = 0; i<results.rows.length ; i++)
			{
				var client = new o_client();
				client.client_id = results.rows.item(i).client_id;
				client.client_onlineId = results.rows.item(i).client_onlindeId;
				client.client_nickname = results.rows.item(i).client_nickname;
				client.client_password = results.rows.item(i).client_password;
				client.client_status = results.rows.item(i).client_status;

				listeDesClients.clientslist_list.push(client);
			}
		});
	});

	/* On lit la BDD pour charger en mémoire tous les conversations */
	database.transaction(function (tx)
	{
		tx.executeSql('SELECT * FROM conversations', [], function(tx, results){
			for (var i = 0; i<results.rows.length ; i++)
			{

				var nouvelleConversation = new o_conversation();
				nouvelleConversation.conversation_id = results.rows.item(i).conversation_id;
				nouvelleConversation.conversation_userA = results.rows.item(i).conversation_userA;
				nouvelleConversation.conversation_userB = results.rows.item(i).conversation_userB;
				listeDesConversations.conversationslist_list.push(nouvelleConversation);
			}
		});
	});



	/* On lit la BDD pour charger en mémoire tous les messages */
	database.transaction(function (tx)
	{
		tx.executeSql('SELECT * FROM messages', [], function(tx, results){
			for (var i = 0; i<results.rows.length ; i++)
			{
				var message1a2 = new o_message();
				message1a2.message_id = results.rows.item(i).message_id;
				message1a2.message_conversationId = results.rows.item(i).message_conversationId;
				message1a2.message_sender = results.rows.item(i).message_sender;
				message1a2.message_message = results.rows.item(i).message_message;
				message1a2.message_timestamp = results.rows.item(i).message_timestamp;

				listeDesMessages.messageslist_list.push(message1a2);
			}
		});
	});

}